Skip to content

Create a record class for the build constants - #59

Merged
kcooney merged 3 commits into
mainfrom
kcooney/build-constants-record
Sep 24, 2025
Merged

Create a record class for the build constants#59
kcooney merged 3 commits into
mainfrom
kcooney/build-constants-record

Conversation

@kcooney

@kcooney kcooney commented Sep 7, 2025

Copy link
Copy Markdown
Contributor

Motivation:

  • Makes the core code easier to understand (by centralizing the fields and
    reflection code)
  • Provides a path that could allow us to migrate our use of gversion to
    generate a properties file instead of a Java class (which would be much
    allow simpler extraction code)

Also update BuildConstantsPublisher JavaDoc to reference the WPILib docs
(so it doesn't get stale).

@kcooney
kcooney requested a review from vdikov September 7, 2025 19:19
@kcooney
kcooney force-pushed the kcooney/build-constants-record branch from ab25f50 to d61188c Compare September 7, 2025 19:22
@kcooney
kcooney force-pushed the kcooney/build-constants-record branch 2 times, most recently from 400d969 to 1905d1c Compare September 20, 2025 01:08
Motivation
- Makes the core code easier to understand (by centralizing the fields and
  reflection code)
- Provides a path that could allow us to migrate our use of gversion to
  generate a properties file instead of a Java class (which would be much
  allow simpler extraction code)
@kcooney
kcooney force-pushed the kcooney/build-constants-record branch from 1905d1c to b7ea2c1 Compare September 23, 2025 01:35

@spderman3333 spderman3333 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kcooney
kcooney merged commit 546f5b0 into main Sep 24, 2025
1 check passed
@kcooney
kcooney deleted the kcooney/build-constants-record branch September 24, 2025 03:24
kcooney added a commit to Prospect-Robotics/Robot2025 that referenced this pull request Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants